//数组的反转
import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import org.w3c.dom.ls.LSOutput;

import java.sql.SQLOutput;
import java.util.Scanner;
public class test_01 {
    public static void main(String[] args) {
        int arr[] = {1, 2, 3, 4, 5, 6, 7};
        revArray(arr);
        for(int x = 0;x <arr.length;x++){
            System.out.println(arr[x]);
        }
    }
    public static void revArray(int [] arr){
        for(int x = 0;x <arr.length/2;x++){
            int temp = arr[x];
            arr[x] = arr[arr.length-1-x];
            arr[arr.length-1-x]  = temp;
        }
    }
}
